package com.spoorle.perf.impl;

import com.spoorle.perf.iface.Probe;
/**
 * Factory for default probe implementation.
 * @author Maciej Grula <a href="mailto:maciej.grula@gmail.com">maciej.grula@gmail.com</a>
 *
 */
public class ProbeFactory {

	/**
	 * <p>Create factory method. Returns new instance of probe object for given class.</p><p> 
	 * <br/><em><b>Warning!</b> One must manually invoke enable() method to start performance measurements.</em>
	 * </p>
	 * @param clazz
	 * @return
	 */
	public static Probe getProbe(Class clazz) {
		DefaultProbeImpl probe = new DefaultProbeImpl(clazz);
		return probe;
	}
 
}
